package com.zhengke.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhengke.dao.IGoodsDaoOther;
import com.zhengke.pojo.SysGoods;
import com.zhengke.service.IGoodsDaoOtherService;



@Service 
public class IGoodsDaoOtherServiceImpl implements IGoodsDaoOtherService {
	
	//注入IGoodsDaoOther层的对象
	@Autowired
	IGoodsDaoOther igoodsDaoOther;

	@Override
	public SysGoods querryGoodsDetailByNameAndId(Map<String, Object> myMap) {
		
		return igoodsDaoOther.querryGoodsDetailByNameAndId(myMap);
	}

	@Override
	public int updateGoodsById(Map<String, Object> elementMap) {
		
		return igoodsDaoOther.updateGoodsById(elementMap);
	}

	@Override
	public int insertNodeForOthers(Map<String, Object> messageMap) {
		
		return igoodsDaoOther.insertNodeForOthers(messageMap);
	}

	@Override
	public int insertNodeMessageByObject(SysGoods sysGoods) {
		
		return igoodsDaoOther.insertNodeMessageByObject(sysGoods);
	}

	
}
